<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<div class="title">
	<s:label cssClass="current fl" key="admin.settings.title" />
	<s:a href="/admin/home.html" cssClass="back fr">[<s:text name="common.button.back" />]</s:a>
	<s:a action="cityList" cssClass="back pr5 fr">
		[<s:text name="admin.cityList.title" />]
	</s:a>
	<span class="back pr5 fr">
		[<s:text name="admin.settings.title" />]
	</span>
	<div class="clear"></div>
	<hr class="title" />
</div>
<div class="clear"></div>
<s:form action="/admin/doSettingsEdit.html" method="post" theme="simple">
	<div class="table">
		<%-- 页面提示信息 --%>
		<div class="row">
			<div class="cell-label"></div>
			<div class="cell-text actionMessage h30">
				<s:actionerror />
				<s:actionmessage cssClass="fl" />
			</div>
		</div>
		<%-- 登录失败最大次数 --%>
		<div class="row">
			<div class="cell-label">
				<s:text name="admin.settings.loginFailureCount" />
				:
			</div>
			<div class="cell-text">
				<s:select name="loginFailureCount" list="loginFailureCountList" cssClass="w240" />
			</div>
			<div class="fieldError w300">
				<s:fielderror fieldName="msg.loginFailureCount" />
			</div>
		</div>
		<%-- 列表每页数据量 --%>
		<div class="row">
			<div class="cell-label">
				<s:text name="admin.settings.pageSize" />
				:
			</div>
			<div class="cell-text">
				<s:select name="pageSize" list="pageSizeList" cssClass="w240" />
			</div>
			<div class="fieldError w300">
				<s:fielderror fieldName="msg.pageSize" />
			</div>
		</div>
		<%-- 验证码长度 --%>
		<div class="row">
			<div class="cell-label">
				<s:text name="admin.settings.securityCodeLength" />
				:
			</div>
			<div class="cell-text">
				<s:select name="securityCodeLength" list="securityCodeLengthList" cssClass="w240" />
			</div>
			<div class="fieldError w300">
				<s:fielderror fieldName="msg.securityCodeLength" />
			</div>
		</div>
		<%-- coolie保存时间长度 --%>
		<div class="row">
			<div class="cell-label">
				<s:text name="admin.settings.cookieExpirationDate" />
				:
			</div>
			<div class="cell-text">
				<s:select name="cookieExpirationDate" list="cookieExpirationDateList" cssClass="w240" />
			</div>
			<div class="fieldError w300">
				<s:fielderror fieldName="msg.cookieExpirationDate" />
			</div>
		</div>
		<%-- 默认所在国家 --%>
		<div class="row">
			<div class="cell-label">
				<s:text name="admin.settings.defaultCountry" />
				:
			</div>
			<div class="cell-text">
				<s:select name="defaultCountry" list="defaultCountryList" listKey="countryId" listValue="countryName" cssClass="w240" />
			</div>
			<div class="fieldError w300">
				<s:fielderror fieldName="msg.defaultCountry" />
			</div>
		</div>
		<%-- 是否使用验证码 --%>
		<!-- 		<div class="row"> -->
		<!-- 			<div class="cell-label"> -->
		<%-- 				<s:text name="admin.settings.useScurityCode" />: --%>
		<!-- 			</div> -->
		<!-- 			<div class="cell-text"> -->
		<%-- 				<s:select name="useScurityCode" list="useScurityCodeList" cssClass="w240" /> --%>
		<!-- 			</div> -->
		<!-- 			<div class="fieldError w300"> -->
		<%-- 				<s:fielderror fieldName="msg.useScurityCode" /> --%>
		<!-- 			</div> -->
		<!-- 		</div> -->
		<%-- 默认日期格式 --%>
		<div class="row">
			<div class="cell-label">
				<s:text name="admin.settings.defaultDateFormat" />
				:
			</div>
			<div class="cell-text">
				<s:select name="defaultDateFormat" list="defaultDateFormatList" cssClass="w240" />
			</div>
			<div class="fieldError w300">
				<s:fielderror fieldName="msg.defaultDateFormat" />
			</div>
		</div>
		<div class="row">
			<div class="cell-label"></div>
			<div class="cell-button">
				<s:submit name="save" method="save" key="common.button.save" cssClass="button3" />
			</div>
		</div>
	</div>
</s:form>